package com.pan.hisystem.mapper;

import com.pan.hisystem.pojo.Registration;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qingyang
 * @since 2022-03-13
 */
@Repository
public interface RegistrationMapper extends BaseMapper<Registration> {

    /**
     * 根据卡号获取挂号记录
     * @param mid
     * @return
     */
    List<Registration> getRecordByMid(@Param(value = "mid") String mid);
}
